package top.zywork.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * SchoolParcelVO值对象类<br/>
 *
 * 创建于2020-10-26<br/>
 *
 * @author http://ljyanimo.com 刘金泳
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class SchoolParcelVO extends BaseVO {

    private static final long serialVersionUID = -9223372035154454797L;

    /**
	 * 主键
	 */
	private Long id;
	/**
	 * 学校ID
	 */
	@NotNull(message = "此项是必须项")
	private Long schoolId;

	private String schoolName;

	/**
	 * 包裹大小
	 */
	@NotBlank(message = "此项是必须项")
	@Size(min = 1, max = 100, message = "必须是1-100个字符")
	private String parcel;
	/**
	 * 对应包裹大小的金额
	 */
	private BigDecimal amount;
	/**
	 * 备注
	 */
	@Size(min = 0, max = 100, message = "必须小于100个字符")
	private String notes;
	/**
	 * 是否激活
	 */
	private Byte isActive;
	/**
	 * 版本号
	 */
	private Integer version;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 创建时间
	 */
	private Date createTime;

}
